//const { defineConfig } = require('@vue/cli-service')
module.exports = ({
  transpileDependencies: true,
  lintOnSave: false,
  publicPath: './',
  productionSourceMap: false,
  devServer: {
    hot: true,
    host: 'localhost',
    port: 8888,
    https: false,
    //hotOnly: false,
    proxy: {
      '/info': {
        target: 'http://localhost:9000',
        changeOrigin: true,
        pathRewrite: {
          '^/info': ''
        }
      },
      '/api': {
        target: 'http://localhost:9020',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
})
